<template>
  <div class="WechatMask">
    <img :src="src">
  </div>
</template>

<script>
  /*global $ returnCitySN require ClipboardJS wx err process*/
  export default {
    name: "WechatMask",
    data: () => {
      return {
        src: ''
      }
    },
    created() {
      let ua = this.$router.UA();
      if (ua.ios) {
        this.src = require('@/assets/images/v1.0.0/weixin-tip-ios.png');
      } else {
        this.src = require('@/assets/images/v1.0.0/weixin-tip-android.png');
      }
    }
  }
</script>

<style lang="scss" scoped>
  .WechatMask {
    display: block;
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    padding-top: 6vw;
    background-color: rgba(0, 0, 0, .6);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5001;

    img {
      display: block;
      max-width: 100vw;
      padding: 0 10vw;
    }
  }
</style>